package com.web.wps.propertie;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.beans.factory.annotation.Value;
import org.springframework.boot.CommandLineRunner;
import org.springframework.stereotype.Component;

@Component
public class ApplicationProperties implements CommandLineRunner {

    public static String appid = "";
    public static String appSecret = "";
    public static String domain = "";

    @Autowired
    public ApplicationProperties(
            @Value("${wps.appid}") String appid,
            @Value("${wps.appsecret}") String appSecret,
            @Value("${wps.domain}") String domain) {
        ApplicationProperties.appid = appid;
        ApplicationProperties.appSecret = appSecret;
        ApplicationProperties.domain = domain;
    }
    @Override
    public void run(String... args) throws Exception {

    }
}
